Current File : /var/www/vinorea/modules/ipcatalogexportimport/views/templates/admin/ip_catalog_export/pack.tpl |
{**
*
* NOTICE OF LICENSE
*
* @author SmartPresta <tehran.alishov@gmail.com>
* @copyright 2024 SmartPresta
* @license Commercial License
*
*}
<div id="catalogEI-tab-content-Pack" class="catalogEI-tab-content" style="display: none;">
<form id="pack_export_form" class="form-horizontal catalogEI_form" action="{$ajax_url}" method="post" enctype="multipart/form-data" name="pack_export" novalidate="novalidate">
<input type="hidden" name="export" value="pack" />
<div id="catalogEI-pack" class="panel catalogEI-tab">
<h3 class="tab"><i class="icon-briefcase"></i> {l s='Packs' mod='ipcatalogexportimport'}</h3>
<div class="form-wrapper">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#pack_configurations">
<i class="icon-wrench"></i>
{l s='Configurations' mod='ipcatalogexportimport'}</a></li>
<li><a data-toggle="tab" href="#pack_fields">
<i class="icon-sliders"></i>
{l s='Fields' mod='ipcatalogexportimport'}</a></li>
<li><a data-toggle="tab" href="#pack_filters">
<i class="icon-filter"></i>
{l s='Filters' mod='ipcatalogexportimport'}</a></li>
</ul>
<div class="tab-content">
<div id="pack_configurations" class="tab-pane in active">
<div class="alert alert-info alert-dismissible fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<span>{l s='Here you define main options of the document you will export.' mod='ipcatalogexportimport'}</span>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='CSV is faster.' mod='ipcatalogexportimport'}">
<b>{l s='Export as ' mod='ipcatalogexportimport'}</b>
</span>
</label>
<div class="col-lg-9">
<div class="radio">
<label><input type="radio" name="as" value="csv" checked>{l s='CSV' mod='ipcatalogexportimport'}</label>
</div>
<div class="radio">
<label><input type="radio" name="as" value="xlsx">{l s='Excel' mod='ipcatalogexportimport'}</label>
</div>
</div>
</div>
<br>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='This is the name of the document you will download.' mod='ipcatalogexportimport'}">
{l s='File name' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<input type="text"
name="doc_name"
id="pack_doc_name"
value="{l s='Packs' mod='ipcatalogexportimport'}"
class="fixed-width-xxl"
size="33
required="required" />
</div>
</div>
<br>
<div class="csv_options collapse in">
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='e.g. a,b,c or a;b;c or a b c' mod='ipcatalogexportimport'}">
{l s='Value separator' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="csv_separator"
class="fixed-width-xxl"
id="pack_csv_separator">
<option value=";">; {l s='(semicolon)' mod='ipcatalogexportimport'}</option>
<option value=",">, {l s='(comma)' mod='ipcatalogexportimport'}</option>
<option value="t">\t {l s='(tab)' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>
{*<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='e.g. a,b,c or "a","b","c"' mod='ipcatalogexportimport'}">
{l s='Value enclosure' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="csv_enclosure"
class="fixed-width-xxl"
id="pack_csv_enclosure">
<option value="quot">"" {l s='(quotation marks)' mod='ipcatalogexportimport'}</option>
<option value="none">{l s=' (nothing)' mod='ipcatalogexportimport'}</option>
</select>
</div>
</div>*}
<br>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='If there are several values in a cell, by what symbol they should be separated. By default, it is a comma.' mod='ipcatalogexportimport'}">
{l s='Multiple Value separator' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<input type="text"
name="multivalue_separator"
id="pack_multivalue_separator"
value=","
class="fixed-width-xxl"
size="33"
required="required" />
<p class="help-block">
{l s='e.g. Blouse; red.jpg, blue.jpg, green.jpg; 129.90' mod='ipcatalogexportimport'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='The language of data (Headers are excluded)' mod='ipcatalogexportimport'}">
{l s='Language' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<select name="language"
class="fixed-width-xxl"
id="pack_language">
{foreach from=$languages item=language}
{if $lang_id neq $language.id_lang}
<option value="{$language.id_lang}">{$language.name}</option>
{else}
<option selected value="{$language.id_lang}">{$language.name}</option>
{/if}
{/foreach}
</select>
</div>
</div>
<br>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Select a column' mod='ipcatalogexportimport'}">
{l s='Sort By' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-3">
<select id="pack_sort" name="sort" {*multiple*} class="fixed-width-xxl">
<option value="pack.id_product_pack">{l s='ID' mod='ipcatalogexportimport'}</option>
<option value="pack_name.reference">{l s='Pack Reference' mod='ipcatalogexportimport'}</option>
<option value="pack_name.name">{l s='Pack Name' mod='ipcatalogexportimport'}</option>
<option value="pack.id_product_item">{l s='Product ID' mod='ipcatalogexportimport'}</option>
<option value="product.reference">{l s='Product Reference' mod='ipcatalogexportimport'}</option>
<option value="product_lang.name">{l s='Product Name' mod='ipcatalogexportimport'}</option>
<option value="pack.id_product_attribute_item">{l s='Combination ID' mod='ipcatalogexportimport'}</option>
<option value="combination.reference">{l s='Combination Reference' mod='ipcatalogexportimport'}</option>
<option value="pack.quantity">{l s='Quantity' mod='ipcatalogexportimport'}</option>
</select>
<p class="help-block">
</p>
</div>
<div class="col-lg-5 col-lg-offset-1">
<span class="switch prestashop-switch fixed-width-lg">
<input type="radio" name="sort_way" id="pack_sort_asc" value="1" checked="checked" />
<label for="pack_sort_asc">{l s='ASC' mod='ipcatalogexportimport'}</label>
<input type="radio" name="sort_way" id="pack_sort_desc" value="0" />
<label for="pack_sort_desc">{l s='DESC' mod='ipcatalogexportimport'}</label>
<a class="slide-button btn"></a>
</span>
<p class="help-block">
{l s='Ascending or descending' mod='ipcatalogexportimport'}
</p>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Specify how many digits you want to see after the decimal symbol.' mod='ipcatalogexportimport'}">
{l s='Number of decimals' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<select name="decimals"
class="fixed-width-xxl"
id="pack_decimals">
<option selected value="-1">{l s='Keep as is' mod='ipcatalogexportimport'}</option>
<option value="0">{l s='0 digit' mod='ipcatalogexportimport'}</option>
<option value="1">{l s='1 digit' mod='ipcatalogexportimport'}</option>
<option value="2">{l s='2 digits' mod='ipcatalogexportimport'}</option>
<option value="3">{l s='3 digits' mod='ipcatalogexportimport'}</option>
<option value="4">{l s='4 digits' mod='ipcatalogexportimport'}</option>
</select>
<br>
</div>
</div>
<div class="form-group">
<label class="control-label col-lg-3 speed">
<span class="label-tooltip" data-toggle="tooltip" title="" data-original-title="{l s='Number of rows per export request. For a weak server select a lower value, for a speedy server select a higher value.' mod='ipcatalogexportimport'}">
{l s='Export speed' mod='ipcatalogexportimport'}
</span>
</label>
<div class="col-lg-9">
<div class="fixed-width-xxl">
<div class="range-labels">
<span class="">100</span>
<span class="">200</span>
<span class="">500</span>
<span class="">1k</span>
<span class="">2k</span>
<span class="">5k</span>
<span class="">10k</span>
</div>
<input id="pack_speed" name="speed" type="range" min="1" max="7" step="1" value="4"/>
</div>
</div>
</div>
</div>
<div id="pack_filters" class="tab-pane catalogEI_filters">
<p class="filter-header text-center">{l s='Filter by fields' mod='ipcatalogexportimport'}</p>
<div class="row filter-fields-container">
<div class="columns_section_for_filter col-xs-6 col-md-4">
<fieldset class="columns_fieldset_for_filter">
<legend>{l s='Click on a field to filter' mod='ipcatalogexportimport'} </legend>
<div class="columns_header_for_filter row">
<span class="clearable">
<input class="columns_search_for_filter" type="search" placeholder="{l s='Search for fields...' mod='ipcatalogexportimport'}" />
<i class="clearable_clear_for_filter">×</i>
</span>
</div>
<div class="scroll_columns_for_filter scrollable">
<ul class="columns_for_filter list-group item-list">
</ul>
</div>
</fieldset>
</div>
<div class="filter_section_container col-xs-6 col-md-8">
</div>
</div>
<hr>
<br>
<p class="filter-header text-center">{l s='Filter by specific selections' mod='ipcatalogexportimport'}</p>
<div class="alert alert-info alert-dismissible fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<span>{l s='If all items of a table (e.g. Feature) are selected or deselected, they are not included in the filter.' mod='ipcatalogexportimport'}</span>
</div>
{if $shop_feature}
<hr>
<h4 class="filter">{l s='Select Shop Context' mod='ipcatalogexportimport'}</h4>
<div class="form-group">
<label class="control-label col-lg-3">
{l s='Shop' mod='ipcatalogexportimport'}
</label>
<div class="col-lg-9">
<select name="shop"
class="{if $shops|@count gt 10} chosen {/if} fixed-width-xxl"
id="pack_shop">
<option selected value="all">{l s='All shops' mod='ipcatalogexportimport'}</option>
{foreach from=$shops item=shop}
{if $shop.id_shop eq $context_shop}
<option value="{$shop.id_shop}">{$shop.name} ({l s='This shop' mod='ipcatalogexportimport'})</option>
{elseif $shop.id_shop eq $default_shop}
<option value="{$shop.id_shop}">{$shop.name} ({l s='Default shop' mod='ipcatalogexportimport'})</option>
{else}
<option value="{$shop.id_shop}">{$shop.name}</option>
{/if}
{/foreach}
</select>
<p class="help-block">
{l s='The shop of the products' mod='ipcatalogexportimport'}
</p>
</div>
</div>
<br>
{/if}
<hr>
<h4 class="filter">{l s='Filter By Pack' mod='ipcatalogexportimport'}</h4>
<select id="ctrl-show-selected-packs" name="ctrl-show-selected-packs" class="show_selected pull-left">
<option value="all" selected>{l s='Show all' mod='ipcatalogexportimport'}</option>
<option value="selected">{l s='Show selected' mod='ipcatalogexportimport'}</option>
<option value="not-selected">{l s='Show deselected' mod='ipcatalogexportimport'}</option>
</select>
<button id="refresh_packs" class="btn btn-default refresh_button"><i class="icon-refresh"></i>
{l s='Reload table' mod='ipcatalogexportimport'}
</button>
<br>
<table id="packs_table" class="table table-striped table-bordered" style="width:100%;table-layout:fixed;">
<thead>
<tr>
<th></th>
<th>{l s='ID' mod='ipcatalogexportimport'}</th>
<th>{l s='Pack Name' mod='ipcatalogexportimport'}</th>
<th>{l s='Product ID' mod='ipcatalogexportimport'}</th>
<th>{l s='Product Name' mod='ipcatalogexportimport'}</th>
<th>{l s='Product Reference' mod='ipcatalogexportimport'}</th>
<th>{l s='Combination Reference' mod='ipcatalogexportimport'}</th>
<th>{l s='Combination' mod='ipcatalogexportimport'}</th>
<th>{l s='Quantity' mod='ipcatalogexportimport'}</th>
</tr>
</thead>
</table>
<br>
<br>
</div>
<div id="pack_fields" class="tab-pane catalogEI_fields catalogEI_pack_fields">
<div class="alert alert-warning alert-dismissible">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<span>{l s='It is important not to select or deselect any field if you import the export file to Prestashop with this module!' mod='ipcatalogexportimport'}</span>
</div>
<div class="row">
<div class="scrollable col-md-6">
<div class="row fields_header">
<button class="btn btn-default select_all_columns"><i class="icon-check-square-o"></i>{l s='Select all' mod='ipcatalogexportimport'}</button>
<button class="btn btn-default reset_columns">{l s='Reset selection' mod='ipcatalogexportimport'}</button>
<span class="clearable pull-right">
<input class="fields_search" type="search" placeholder="{l s='Search...' mod='ipcatalogexportimport'}" />
<i class="clearable_clear">×</i>
</span>
</div>
<ul class="list-group item-list columns_list">
<li class="list-group-item selected" data-value="pack.id_product_pack" data-type="number"><i class="icon-check-square-o"></i>{l s='Pack ID' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="pack_name.name" data-type="string"><i class="icon-check-square-o"></i>{l s='Pack Name' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="pack_name.reference" data-type="string"><i class="icon-check-square-o"></i>{l s='Pack Reference' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="pack.id_product_item" data-type="number"><i class="icon-check-square-o"></i>{l s='Product ID' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="product_lang.name" data-type="string"><i class="icon-check-square-o"></i>{l s='Product Name' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="product.reference" data-type="string"><i class="icon-check-square-o"></i>{l s='Product Reference' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="pack.id_product_attribute_item" data-type="number"><i class="icon-check-square-o"></i>{l s='Combination ID' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="combination.reference" data-type="string"><i class="icon-check-square-o"></i>{l s='Combination Reference' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="attributes.values" data-type="string"><i class="icon-check-square-o"></i>{l s='Attributes (x,y,z...)' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
<li class="list-group-item selected" data-value="pack.quantity" data-type="number"><i class="icon-check-square-o"></i>{l s='Quantity' mod='ipcatalogexportimport'}<img src='{$module_path}views/img/drag.svg' class="pull-right cursor-drag" /></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="panel-footer">
<div class="text-center">
<button type="submit" value="1" name="pack_export" class="btn btn-default">
<i class="process-icon-export"></i>{l s='Export Packs' mod='ipcatalogexportimport'}
</button>
</div>
</div>
</div>
</form>
</div>